extends ../layout.pug

block title
  title 牌局记录

block stylesheets
  link(rel="stylesheet", href="/css/match-records.css")

block body
  if games.length
    .game__list
      each game, index in games
        .game__item
          .item__label
            .label__digital 第#{games.length - index }局
            .label__time #{game.date ? game.date: '00:00'}
          .item__detail
            .item__score  #{game.score}分
            .item__actions #{game.actions.join(' ')}
  else
    .match-records.match-records--none
      img(src="/images/def_img@2x.png", alt="暂时相关记录")
      p.tip 暂无相关记录
